﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class calculator0 : MonoBehaviour {

	float u0=  -0.926f;//     -0.205f;//-0.318f;
	float u1=  0.377f;              // -0.576f;//         // -0.726f;
	float u2=  0.034f;           //   0.791f;//       -0.61f;
	float b0=7;
	float b1=4;
	float b2=3f;

	float sd0=9.749f;
	float sd1=2.992f;



	// Use this for initialization
	void Start () {
		
	}



	
	// Update is called once per frame
	void Update () {



	}

	void OnGUI()
	{
		float sum=u0*b0+u1*b1+u2*b2;
		GUILayout.Label("   "+sum.ToString());
		GUILayout.Label("b0/d0     "+ (-6.96f/9.749f).ToString());
		GUILayout.Label("b1/d1     "+ (-1.366f/2.992f).ToString());

		GUILayout.Label("  x0             "+(-0.494f*-0.7139f+0.869f*-0.4565).ToString());
		GUILayout.Label("  x1             "+(-0.869f*-0.7139f+(-0.494f)*(-0.4565)).ToString());

		GUILayout.Label("  Result0    "+(-0.044f+3f*(0.8459f)).ToString());
		GUILayout.Label("  Result1    "+(-0.044f*2+7f*(0.8459f)).ToString());
		GUILayout.Label("  Result2    "+(-0.044f*5+4f*(0.8459f)).ToString());

	
	}
}
